/*
 *  Copyright 2024 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import './../../../styles/variables.less';

.rich-text-editor-container {
  ol,
  ul {
    margin: unset;
    padding-inline-start: 20px;
  }
  .ant-btn {
    padding: 0px;
    margin: 0px;
    line-height: 0px;
    height: 16px;
    color: @primary-heading-color !important;
  }

  .ant-btn:focus,
  .ant-btn:hover {
    color: @primary-heading-color !important;
  }

  &.text-grey-muted {
    .markdown-parser {
      .om-block-editor {
        p {
          color: @text-color;
        }
        ul li::before {
          background-color: @grey-4;
        }
      }
    }
  }

  .markdown-parser.white {
    .block-editor-wrapper .tiptap.ProseMirror.om-block-editor {
      p {
        color: @white;
      }
      ul li::before {
        background-color: @white;
      }
    }
  }
}
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
